import { reactive } from "vue";
import type { FormRules } from "element-plus";

/** 自定义表单规则校验 */
export const formRules = reactive(<FormRules>{
  name: [{ required: true, message: "任务名称为必填项", trigger: "blur" }],
  paperName: [{ required: true, message: "请选择右侧试卷", trigger: "blur" }],
  starttime: [
    { required: true, message: "考试开始时间为必填项", trigger: "blur" }
  ],
  endtime: [
    { required: true, message: "禁止入场时间为必填项", trigger: "blur" }
  ],
  del: [{ required: true, message: "任务状态为必填项", trigger: "blur" }],
  description: [
    { required: true, message: "考试说明为必填项", trigger: "blur" }
  ]
});
